package cn.echogo.framework.util;

import java.lang.reflect.Field;
import java.util.Map;

public class StringUtil {
	
	public static String mergeKeyValues(Object ... keyValues) {
		StringBuffer sb = new StringBuffer();
		for(int i = 0; i < keyValues.length; i += 2 ) {
			sb.append(keyValues[i]);
			sb.append(keyValues[i + 1]);
		}
		return sb.toString();
	}
	
	public static String mergeBeanFields(Object bean) {
		Field[] fields = bean.getClass().getFields();
		for(int i = 0; i < fields.length; i ++ ) {
			Field field = fields[i];
			//TODO
		}
		return null;
	}
	
	public static String mergeMapFields(Map map) {
		//TODO
		return null;
	}

}
